package com.tmall.testgen.plugin.views.vo;

import org.eclipse.jface.viewers.ITableLabelProvider;
import org.eclipse.jface.viewers.LabelProvider;
import org.eclipse.swt.graphics.Image;

public class ParameterTableLabelProvider extends LabelProvider implements
		ITableLabelProvider {

	@Override
	public Image getColumnImage(Object element, int columnIndex) {
		return null;
	}

	@Override
	public String getColumnText(Object element, int columnIndex) {
		ParameterBean bean = (ParameterBean) element;
		switch (columnIndex) {
		case 0:
			return bean.getName();
		case 1:
			return bean.getType();
		case 2:
			return bean.getValue();
		default:
			return "unknown " + columnIndex;
		}
	}

}
